package com.xjx.account.api.dto;

import lombok.Builder;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@Builder
public class UserDTO implements Serializable {

    private Long id;
    /**
     * 微信openid
     */
    private String openid;
    /**
     * 昵称
     */
    private String username;
    /**
     * 头像
     */
    private String userFace;
    /**
     * 手机号
     */
    private String phone;


    private String mail;
    /**
     * 用户签名
     */
    private String tag;
    /**
     * 0表示女，1表示男
     */
    private Integer sex;
    /**
     * 城市
     */
    private String city;
    /**
     * 创建时间
     */
    private Date createTime;

    private Date lastLoginTime;

    private String password;
    private String userId;




    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", openid=" + openid +
                ", username=" + username +
                ", userFace=" + userFace +
                ", phone=" + phone +
                ", mail=" + mail +
                ", tag=" + tag +
                ", sex=" + sex +
                ", city=" + city +
                ", createTime=" + createTime +
                ", lastLoginTime=" + lastLoginTime +
                ", password=" + password +
                ", userId=" + userId +
                "}";
    }
}
